import request from '@/utils/request'

// 查询人员列表
export function getMainChecklist(query) {
  return request({
    url: '/physical/MainCheck/list',
    method: 'get',
    params: query
  })
}
// 查询人员审核列表
export function getMainCheckExaminelist(query) {
  return request({
    url: '/physical/MainCheckExamine/list',
    method: 'get',
    params: query
  })
}
//人员信息
export function getMainCheckByCheckcode(data) {
  return request({
    url: '/physical/MainCheck/getMainCheckByCheckcode',
    method: 'post',
    data: data
  })
}
//历史信息
export function getHistoryPhysical(data) {
  return request({
    url: '/physical/MainCheck/getHistoryPhysical',
    method: 'post',
    data: data
  })
}
//提交的信息
export function getSubmitMaincheckPhysical(data) {
  return request({
    url: '/physical/MainCheck/getSubmitMaincheckPhysical',
    method: 'post',
    data: data
  })
}
//保存主检
export function saveMaincheck(data) {
  return request({
    url: '/physical/MainCheck/SaveMaincheck',
    method: 'post',
    data: data
  })
}
//撤销主检
export function revokeMaincheck(data) {
  return request({
    url: '/physical/MainCheck/RevokeMaincheck',
    method: 'post',
    data: data
  })
}
//保存主检审核
export function saveMaincheckExamin(data) {
  return request({
    url: '/physical/MainCheckExamine/examin',
    method: 'post',
    data: data
  })
}
//撤销主检审核
export function unexaminMaincheck(data) {
  return request({
    url: '/physical/MainCheckExamine/Unexamin',
    method: 'post',
    data: data
  })
}
export function revokeMaincheckExamine(data) {
  return request({
    url: '/physical/MainCheckExamine/RevokeMaincheck',
    method: 'post',
    data: data
  })
}
// 查询健康建议
export function gethealthadvicelist(query) {
  return request({
    url: '/basic/basehealthadvice/list',
    method: 'get',
    params: query
  })
}
// 主检结论
export function getbasemaincheckconclusion(query) {
  return request({
    url: '/basic/basemaincheckconclusion/list',
    method: 'get',
    params: query
  })
}
// 结论建议
export function getbasemaincheckconclusionadvice(query) {
  return request({
    url: '/basic/basemaincheckconclusionadvice/list',
    method: 'get',
    params: query
  })
}
// 疑似职业病
export function getbaseoccupationaldiseae(query) {
  return request({
    url: '/basic/baseoccupationaldiseae/list',
    method: 'get',
    params: query
  })
}
// 禁忌症
export function getbasecontraindication(query) {
  return request({
    url: '/basic/basecontraindication/list',
    method: 'get',
    params: query
  })
}
// 所有项目
export function getbasecomblist(query) {
  return request({
    url: '/basic/basecomb/list',
    method: 'get',
    params: query
  })
}
